package com.sdgakj.entity;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * Created by yl on 2017/5/17.
 * 分享的实体类
 */
@Entity
@Table(name = "f_share")
public class Share extends IdEntity implements Serializable {
    private static final long serialVersionUID = 1L;


    private String fsTitle;
    private String fsDesp;
    private String fsUrl;
    private Timestamp fnCreatetime;
    private Timestamp fnUpdatetime;
    @ManyToOne(fetch = FetchType.LAZY )
    @JoinColumn(name = "fp_id")
    private Long fpId;




    public Share(){
    }
    public Share(String fsTitle, String fsDesp, String fsUrl, Timestamp fnCreatetime, Timestamp fnUpdatetime, Family family) {
        this.fsTitle = fsTitle;
        this.fsDesp = fsDesp;
        this.fsUrl = fsUrl;
        this.fnCreatetime = fnCreatetime;
        this.fnUpdatetime = fnUpdatetime;
        //this.fpId = family.getUserId();
       }
    public String getFsDesp() {
        return fsDesp;
    }

    public void setFsDesp(String fsDesp) {
        this.fsDesp = fsDesp;
    }

    public String getFsTitle() {
        return fsTitle;
    }

    public void setFsTitle(String fsTitle) {
        this.fsTitle = fsTitle;
    }

    public String getFsUrl() {
        return fsUrl;
    }

    public void setFsUrl(String fsUrl) {
        this.fsUrl = fsUrl;
    }

    public Timestamp getFnCreatetime() {
        return fnCreatetime;
    }

    public void setFnCreatetime(Timestamp fncreatetime) {
        this.fnCreatetime = fnCreatetime;
    }

    public Timestamp getFnUpdatetime() {
        return fnUpdatetime;
    }

    public void setFnUpdatetime(Timestamp fnUpdatetime) {
        this.fnUpdatetime = fnUpdatetime;
    }

    public Long getFpId() {
        return fpId;
    }

    public void setFpId(Long fpId) {
        this.fpId = fpId;
      }
    }





